import Cookies from 'js-cookie'

const TokenKey = 'tokenId'

export function getToken() {
  return  localStorage.getItem('token')
}

export function setToken(token) {
  Cookies.set(TokenKey, token);
  localStorage.setItem(TokenKey, token);
}

export function removeToken() {
  Cookies.remove(TokenKey);
  localStorage.removeItem(TokenKey);
}
